package eval.engine.cplex.InitialCplexCode;

/**
 * Types of Resources 
 *
 *
 * @author tomek,gciano,erezh,msschnei
 * @version VRPS Milestone 3
 */
public enum ResourceType {
	CPU(ResourceUnitType.MHZ),
	CORE_PERCENT(ResourceUnitType.PERCENT),
	MEMORY(ResourceUnitType.MBYTES);
	
	private ResourceUnitType defaultAssociatedType; // Default type of the resource

	/**
	 * Constructs a ResourceType out of its name
	 * @param theName the name of the resource type
	 */
	private ResourceType(ResourceUnitType theAssociatedType) {
		defaultAssociatedType = theAssociatedType;	
	}

	/**
	 * @return the associated type for the resource type
	 */
	public ResourceUnitType getAssociatedType() {
		return defaultAssociatedType;
	}

}; 
